<?php
	$yhendus=new mysqli ("localhost", "if13", "ifikad", "if13_marionlh");
	$kask=$yhendus->prepare("SELECT id, kassinimi, värvus FROM kassid1");
	$kask->bind_result($id, $kassinimi, $värvus);
	$kask->execute();
?>
<!doctype html>
<html>
	<head>
		<title>Kassileht</title>
	</head>
	<body>
		<?php
			while ($kask->fetch()){
		echo "<h2 style='color: $värvus'>$kassinimi>h2>";
		}
		$yhendus->close();
		?>
	</body>
</html>